package csu.web.credit_bank.service;

import csu.web.credit_bank.pojo.dto.PostCreateDto;
import csu.web.credit_bank.pojo.Posts;
import com.baomidou.mybatisplus.extension.service.IService;
import csu.web.credit_bank.utils.Result;

import java.util.List;

/**
* @author 于欣淇
* @description 针对表【posts(论坛主题表)】的数据库操作Service
* @createDate 2025-06-27 20:08:16
*/
public interface PostsService extends IService<Posts> {

    String createPost(PostCreateDto postDto);
    List<Posts> getPostsList(String id);
    void updatePostLikes(String postId,String userId);
    int getTodayNum(String userId);
}
